from selenium import webdriver
import time

from selenium.webdriver.common.by import By

driver = webdriver.Chrome()

driver.get("https://www.baidu.com")
time.sleep(3)

# driver.find_element(By.NAME,"wd").send_keys("原神赚了多少钱")
# driver.find_element(By.ID,"su").click()
# driver.find_element(By.PARTIAL_LINK_TEXT,"黄埔军校").click()
list1 = driver.find_elements(By.TAG_NAME,"a")
for i in list1:
    print(i.text)

time.sleep(10)

driver.quit()























